package com.greenantmall.home;

import java.io.Serializable;

import android.text.TextUtils;

public class GoodsInfo implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String objectId;
	private String url;
	private String txPath;
	private String descripiton;
	private String specs;
	private String date;
	private String price;
	private int stock;
	private int totalSales;
	
	public String getTxPath() {
		return txPath;
	}
	public void setTxPath(String txPath) {
		this.txPath = txPath;
	}
	public String getDescAndSpecs() {
		if(!TextUtils.isEmpty(getSpecs())) {
			return descripiton + "(" + getSpecs() + ")";
		}
		return descripiton;
	}
	public String getDesc() {
		return descripiton;
	}
	public void setDesc(String descripiton) {
		this.descripiton = descripiton;
	}
	public String getSpecs()
    {
		if(specs == null) {
			return "";
		}
        return specs;
    }
    public void setSpecs(String specs)
    {
        this.specs = specs;
    }
	public String getPrice() {
		return price;
	}
	public void setPrice(String pri) {
		this.price = pri;
	}
	public int getStock() {
		return stock;
	}
	public void setStock(int sk) {
		this.stock = sk;
	}
	public int getSales() {
		return totalSales;
	}
	public void setSales(int sales) {
		this.totalSales = sales;
	}
	public String getCreateDate() {
		return date;
	}
	public void setCreateDate(String date) {
		this.date = date;
	}
	
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getId() {
		return objectId;
	}
	public void setId(String objectId) {
		this.objectId = objectId;
	} 	
}
